import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:lmmi/common/widgets/user_avatar.dart';
import 'package:lmmi/common/data/images.dart';

void main() {
  group('UserAvatar Widget Tests', () {
    testWidgets('UserAvatar displays correctly', (WidgetTester tester) async {
      await tester.pumpWidget(
        MaterialApp(
          home: Scaffold(
            body: UserAvatar(
              radius: 20,
              avatarPath: MyImages.kina,
              fallbackAsset: MyImages.mark,
            ),
          ),
        ),
      );

      expect(find.byType(UserAvatar), findsOneWidget);
      expect(find.byType(CircleAvatar), findsOneWidget);
    });
  });
}
